package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.luckyshop.LuckyShopUserData;
import com.yanqu.road.entity.activity.luckyshop.config.LuckyShopDrawConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class LuckyShopBussiness {

    public static Map<Integer, LuckyShopDrawConfig> getLuckyShopDrawConfig(int activityId) {
        return DaoHelper.getLuckyShopConfigDaoImpl().getLuckyShopDrawConfig(activityId);
    }

    public static LuckyShopUserData getUserData(int activityId, long userId) {
        return DaoHelper.getLuckyShopUserDataDaoImpl().getUserData(activityId, userId);
    }

    public static boolean addLuckyShopUserData(LuckyShopUserData userData) {
        return DaoHelper.getLuckyShopUserDataDaoImpl().add(userData);
    }

    public static boolean updateLuckyShopUserData(LuckyShopUserData userData) {
        return DaoHelper.getLuckyShopUserDataDaoImpl().update(userData);
    }

}
